package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

/**
 * 文章对象 tb_article
 * 
 * @author 段奇乐
 * @date 2025-04-08
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章主键，id */
    private Long articleId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 文章正文 */
    @Excel(name = "文章正文")
    private String articleBody;

    /** 作者 */
    @Excel(name = "作者")
    private String articleAuthor;

    /** 发布人id */
    @Excel(name = "发布人id")
    private Long userId;

    /** 发布人id */
    @Excel(name = "封面")
    private String articleCover;

    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setArticleBody(String articleBody) 
    {
        this.articleBody = articleBody;
    }

    public String getArticleBody() 
    {
        return articleBody;
    }
    public void setArticleAuthor(String articleAuthor) 
    {
        this.articleAuthor = articleAuthor;
    }

    public String getArticleAuthor() 
    {
        return articleAuthor;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getArticleCover() {
        return articleCover;
    }

    public void setArticleCover(String articleCover) {
        this.articleCover = articleCover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("articleTitle", getArticleTitle())
            .append("articleBody", getArticleBody())
            .append("articleAuthor", getArticleAuthor())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("articleCover", getArticleCover())
            .toString();
    }
}
